pull: Avoid leaking signal handlers across fetch requests
authorColin Walters <walters@verbum.org>
Tue, 30 Jun 2015 01:56:03 +0000 (21:56 -0400)
committerColin Walters <walters@verbum.org>
Tue, 30 Jun 2015 01:56:03 +0000 (21:56 -0400)
commit889b86e96ddc64c61f83cb000367288b445cf838
treeb9eed2b9efde2b3e0ff5f9d0ee32a50ff943f021
parentf0a02fbf20ebf4b1f2e248fee24a0babb2b22c03
pull: Avoid leaking signal handlers across fetch requests

libsoup will cache sessions, so it might be the case that we get a
reused session when pulling from the same repo multiple times in one
process.

In this case we were leaking signal connections, which caused
callbacks into freed memory with bad consequences.

Fix it by tying the signal connection to the object lifetime.
src/libostree/ostree-fetcher.c